f = open("bill.txt", "r", encoding="utf-8")
w = open("test.txt", "w", encoding="utf-8")
for i in f:
   if(i.endswith("正式\n")):
        print(i,end=' ')
print(f)

